<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>发布问题 - {g:b_config$c_title@}</title>
    <link href="css/960_24_col.css" rel="stylesheet" type="text/css" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
	<link href="css/redactor.css" rel="stylesheet" type="text/css" />
    <script src="/js/jquery.js" type="text/javascript"></script>
    <script src="/js/jquery-migrate.js" type="text/javascript"></script>
	<script src="/js/redactor/redactor.min.js" type="text/javascript"></script>
    <script src="/js/jspublic.js" type="text/javascript"></script>
    <script type="text/javascript">
		$(function(){			
			$('#xzClass').click(function(){
				$.msg({
					klass : 'xzClass',
					autoUnblock : false,
					clickUnblock : false,
					content: $('#xzClass_box').html(),
					afterBlock : function(){
						var self = this;
						$('.xzClass .classlist a').bind('click', function(){
							$('#xzClass').html($(this).text());
							$('#xzClass').addClass('selected');
							$('#classid').val($(this).attr('id'));
							self.unblock();
						});
						$('.xzClass .close_box').bind('click', function(){
							self.unblock();
						});
					}
				});
			});
			
			$('.SUBMIT').click(function(){$('.question').submit()});
			
			$(".question").Validform({
				showAllError: true,
				postonce:true,
				datatype:{
					"phone": /[\d]{3}-[\d]{8}|[\d]{4}-[\d]{7}/
				},
				tiptype:function(msg,o,cssctl){
					if(!o.obj.is("form")){
						var objtip=o.obj.siblings('.tip');
						cssctl(objtip,o.type);
						objtip.text(msg);
					}else{
						var objtip=o.obj.find('.tip');
						cssctl(objtip,o.type);
						objtip.text(msg);					
					}
				}
			});
			
			$(".question").submit(function(){
					if ($('#a_content2').val() == "" || $('#a_content2').val() == null) {
						$.msg({
							content:'请对问题进行详细描述.',
							centerY: false,
							showOverlay: false
						});
						return false;
					}
			});
			
			if ($('#classid').val() != ""){
				$('#xzClass').html($('#'+$('#classid').val()).html());
				$('#xzClass').addClass('selected');
			}
        });
		
		function checkde() {					
			if ($('#a_hiddenuser').attr('checked')) {
				$('#a_hiddenuser').val("1");
			}
			else {						
				$('#a_hiddenuser').val("0");
			}
			return true;
		}
    </script>
</head>

<body>

	{baohan:template/tmask/m_head.html}{/baohan}
	
	<div class="container_24 mainBG top20">
		<div class="grid_24 QuestionForm">
			<form class="question" method="post" name="example" action="/include/question.ashx" enctype="multipart/form-data">
				<div class="q_info">
					<div class="q_info_label">标 题：</div>
					<div class="q_info_main">
						<input type="text" id="a_title" name="a_title" datatype="*1-40" class="q_title" nullmsg="标题必须填写" errormsg="标题超出允许的字数范围，最多允许40个字符。" />
						<p class="tip">标题必须填写</p>
						<div class="clear"></div>
					</div>
				</div>
				<div class="q_info">
					<div class="q_info_label">分 类：</div>
					<div class="q_info_main">
						<a class="qa_type" id="xzClass">点击选择</a>
						<p class="tip">分类必须选择</p>
						<input type="hidden" id="classid" name="classid" value="" datatype="*" nullmsg="分类必须选择" />
						<div class="clear"></div>
					</div>
				</div>
				<p class="q_content_title"><strong>请对问题进行详细描述：</strong>(如您遇到的问题、办事需要的帮助等)</p>
				<p class="q_editor"><textarea id="a_content2" name="a_content2" datatype="*"></textarea></p>
				<p class="q_sub">
					<span class="SUBMIT rndbutton">发表问题 »</span>
					<span>必须登录后才能提问，请点击 <a target="_blank" href="#">这里</a> 登录。</span>
				</p>
				<script type="text/javascript">
					$(function(){
						$('#a_content2').redactor({lang: 'zh_cn',  minHeight: 200 });
					});
				</script>
			</form>
			
			<div class="QuestionTip">
				<div id="QuestionTitleTip">
					<h2>提问必读</h2>
					<ol>
						<li>无关问题请不要在此发布</li>
						<li>测试测试测试测试测试</li>
						<li>测试测试测试测试测试</li>
						<li>测试测试测试测试测试测试</li>
						<li>测试测试测试测试</li>
						<li>测试测试测试</li>
						<li>规则规则规则规则规则规则</li>
						<li>测试测试测试测试测试</li>
						<li>测试测试测试测试测试</li>
						<li>测试测试测试测试测试测试</li>
						<li>测试测试测试测试</li>
						<li>测试测试测试</li>
						<li>规则规则规则规则规则规则</li>
					</ol>
				</div>
			</div>
			

	<div id="xzClass_box" style="display: none;">
		<div class="xzClass">
			<img src="images/close.jpg" class="close_box" alt="关闭" />
			<div class="xzClassheader">请选择分类信息</div>
			<dl class="classlist">
				{liebiao2:B_askClass^0^a_classid asc^a_classLevel=1}
				<dt>{<a_className>}</dt>
				{liebiao:B_askClass^0^a_classid asc^a_classLevel=2 and a_parentid={<a_classid>}}
				<dd><a id="{a_classid}" title="{a_className}">{a_className}</a></dd>
				{/liebiao}{/liebiao2}				
			</dl>
		</div>
	</div>
	
		</div>
	</div>

    {baohan:template/tmask/m_foot.html}{/baohan}

</body>
</html>